<?php
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	$pic=mysql_query("SELECT mainPic FROM users WHERE id={$_POST['picture']}");
	$pic=mysql_result($pic, 0);
	echo ("<center><a href=http://sapme.net/Framework/profilePage.php?id=".$_POST['picture']."><img style = 'margin-top:5px;' src=".$pic."></a></center>");
?>